{% extends "base.html" %}
{% load i18n %}
{% load user_timezone %}

{% block body %}
  <table width="100%" border="0" cellspacing="5", cellpadding="5">
    <tr bgcolor="#CCDDEE"><td>{{ pm.title }}</td></tr>
    <tr><td class="pmcontents">{{ pm.contents }}</td></tr>
    <tr>
      <td align="right">
        <a href="/pm/reply/{{ pm.key.id }}">[{% trans "Reply" %}]</a>
        <a href="/pm/delete/{{ pm.key.id }}">[{% trans "Delete" %}]</a>
      </td>
    </tr>
    <tr>
      <td>
        --
        <a href="/u/{{ pm.sender.key.name }}">
          {% if pm.sender.nickname %}
            {{ pm.sender.nickname }}
          {% endif %}
            [{{ pm.sender.user.email|slice:":6" }}...]
        </a>
        <span class="time">
          ({{ pm.message_time|user_timezone:time_zone|date:"Y-m-d H:i:s" }})
        </span>
      </td>
    </tr>
  </table>
{% endblock %}